import 'package:kugou/src/api_providers/sing_api_provider.dart';
import 'package:kugou/src/models/sing_rank.dart';
import 'package:rxdart/rxdart.dart';

import 'base_bloc.dart';

class SingRankBloc extends BaseBloc<SingRank>{
  Observable<SingRank> get singRank => fetcher.stream;
  getSingRank() async{
    SingApiProvider provider = SingApiProvider();
    SingRank rank = await provider.getSingRank();
    fetcher.sink.add(rank);
  }
}

final singRankBloc = new SingRankBloc();